package com.woniu.woniuticket.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author spirit
 * @since 2020-01-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderForm implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号
     */
    private String orderNo;
    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 放映场次id
     */
    private Integer showSessionId;

    /**
     * 订单状态（1：待付款，2：待观看，3：已观看，4：已失效）
     */
    private Integer orderStatus;

    /**
     * 订单金额
     */
    private BigDecimal orderPrice;

    /**
     * 座位id
     */
    private String seatId;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date orderTime;

    /**
     * 票数
     */
    private Integer ticketNumber;
    /**
     * 总价钱
     */
    private BigDecimal totelPayment;
    /**
     * 订单名称
     */
    private String orderName;

    private Integer schoolId;

}
